package com.sicheng.datastruct.linkedlist;

import java.util.ArrayList;

public class CircleNodeApp {
    public static void main(String[] args) {
        CircleSingleLinkedNode<Integer> circleNode = new CircleSingleLinkedNode<>();
        ArrayList<Node<Integer>> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            list.add(new Node<>(i+1));
        }

        list.forEach(circleNode::insertOnTail);
        circleNode.display();


    }
}
